package com.tmt.om;

import com.mobnut.db.DBActivator;
import com.mongodb.DBCollection;
import com.sg.business.model.IModelConstants;
import com.sg.widgets.condition.IInputProposal;

public class SalesTeamTextProposal implements IInputProposal {

	public SalesTeamTextProposal() {
	}

	@Override
	public String[] getSuggestions(String key) {
		DBCollection col = DBActivator.getCollection(IModelConstants.DB,
				"omsalesteam");
		return (String[]) col.distinct("desc").toArray(new String[0]);
	}

}
